package database.dao;

import entity.Commodity;

import java.util.List;

public interface CommodityDao {
    void addCommodity(Commodity commodity);
    /***
     * @Title:SelectCommodity
     * @Description:查找business_id对应商家拥有的所有商品
     * @param business_id
     * @return java.util.List<entity.Commodity>
     * @Author: lzq
     */
    List<Commodity> SelectCommodity(String business_id);
    /***
     * @Title:SelectCommodity
     * @Description:
     * @param business_id 登录商家的id
     * @param name 搜索的商品名称
     * @return java.util.List<entity.Commodity>
     * @Author: lzq
     */
    List<Commodity> SelectCommodity(String business_id,String name);
    /***
     * @Title:SelectCommodity
     * @Description:查询数据库内所有商品
     * @param
     * @return java.util.List<entity.Commodity>
     * @Author: lzq
     */
    List<Commodity> SelectCommodity();
    void deleteCommodity(String commodity_id);
    void updateCommodity(Commodity commodity);

}
